package com.study;

import org.springframework.beans.factory.InitializingBean;

/**
 * @author Qi XueSong
 */
public class StudyBean implements InitializingBean {

	private Company company;

	public void setCompany(Company company) {
		this.company = company;
	}

	public StudyBean() {
		System.out.println("StudyBean 构造器...");
	}

	/**
	 * 初始化bean
	 */
	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("StudyBean afterPropertiesSet...");
	}
}
